import 'bulma/css/bulma.css'
import 'font-awesome/css/font-awesome.min.css'
import '../styles/main.css'

import { Button, ButtonGroup } from './button'
import { Menu, MenuGroup, MenuItem } from './menu';
import { Table, TableColumn } from './table'
import { Radio, RadioGroup } from './radio'
import { Checkbox, CheckboxGroup } from './checkbox'
import { Modal } from './modal'
const components = [Button, ButtonGroup, Menu, MenuGroup, MenuItem, Table, TableColumn, Radio, RadioGroup, Checkbox, CheckboxGroup, Modal]

const install = function (Vue, opts = {}) {
    /* istanbul ignore if */
    if (install.installed) return;

    components.map(component => {
        Vue.component(component.name, component);
    });

};
/* istanbul ignore if */
if (typeof window !== 'undefined' && window.Vue) {
    install(window.Vue);
}

export default {
    version: '0.1.0',
    install,
};
